checkout: fchown symlink to proper uid/gid
authorAlexander Larsson <alexl@redhat.com>
Thu, 4 Dec 2014 19:19:09 +0000 (20:19 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 4 Dec 2014 19:30:10 +0000 (20:30 +0100)
commitbb82c17701ad36bd6a408a8212164d42f70f65fb
tree51445baa65dccaf4393f50fde97eff0f7fd3ae02
parent37a059925f6b96d30190b65bee6bdde0ae1c6915
checkout: fchown symlink to proper uid/gid

When commiting a symlink we do store the uid/gid of the actual
symlink (i.e. not target). However, this was not restored
on non-user-mode checkout as it should.

This commit fixes that, and additionally it ensures xattrs
on symlinks are not set in user-mode checkout.

https://bugzilla.gnome.org/show_bug.cgi?id=741125
src/libostree/ostree-repo-checkout.c